import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Message {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  messageInfo: string;

  @Column()
  sendUser: string;

  @Column()
  createTime: Date;

  @Column()
  creater: string;

  @Column()
  updateTime: Date;

  @Column()
  updater: string;

  @Column()
  timestamp: Date;

  @Column()
  deleted: number;
}
